﻿<local:BaseSpeakerUpdateEntityView
    x:Class="Conference.UX.WinRT.Views.SpeakerUpdateEntityView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:Conference.UX.WinRT.Views"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">

    <Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}">
        <Grid.RowDefinitions>
            <RowDefinition Height="140" />
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>

        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
            <Button x:Name="backButton" Command="{Binding CloseCommand}" Style="{StaticResource BackButtonStyle}"/>
            <TextBlock x:Name="pageTitle" Grid.Column="1" Text="{StaticResource AppName}" Style="{StaticResource PageHeaderTextStyle}"/>
        </Grid>

        <Grid x:Name="ContentPanel" Grid.Row="1">
            <ScrollViewer Margin="12,17,0,28" Grid.Row="0">
                <StackPanel Width="444" DataContext="{Binding Data}">
                    <TextBlock   Text="{Binding Id}"/>

                    <TextBlock Text="Name" />
                    <TextBox   Text="{Binding Name, Mode=TwoWay}"/>

                    <TextBlock Text="Title"/>
                    <TextBox   Text="{Binding Title, Mode=TwoWay}"/>

                    <TextBlock Text="Company" />
                    <TextBox   Text="{Binding Company, Mode=TwoWay}" />

                    <TextBlock Text="Biography"/>
                    <TextBox   Text="{Binding Biography, Mode=TwoWay}"/>

                </StackPanel>
            </ScrollViewer>
        </Grid>

        <StackPanel Grid.Row="2" Orientation="Horizontal" >
            <Button Content="Save" Command="{Binding SaveCommand}"/>
            <Button Content="Delete" Command="{Binding DeleteCommand}"/>
        </StackPanel>

    </Grid>
</local:BaseSpeakerUpdateEntityView>